<?php
include "../service/receiptService.php";

$receiptId = $_POST["hdnReceiptId"];
$receiptType = $_POST["receiptType"];
$page = $_GET["page"];
if(!isset($receiptId) || !isset($receiptType)){
	Header("Location: ../admin/receipt.php");
} else {
	updateStatus($receiptId, $receiptType);
	Header("Location: ../admin/receipt.php?page=$page&msg=ok");
}
?>